package checkers.common.logic.commands;


import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "AuthorizeResponse")
public class AuthorizeResponse extends Command {
	
	@XmlElement
	private String reason;
	@XmlElement(required = true)
	private int playerId;
	@XmlElement(required = true)
	private int checkAuthorize;
	
	public AuthorizeResponse() {
		id = 1;
	}
	
	public String getReason() {
		return reason;
	}
	
	public void setReason(String reason) {
		this.reason = reason;
	}
	
	public int getPlayerId() {
		return playerId;
	}
	
	public void setPlayerId(int playerId) {
		this.playerId = playerId;
	}
	
	public int getCheckAuthorize() {
		return checkAuthorize;
	}
	
	public void setCheckAuthorize(int checkAuthorize) {
		this.checkAuthorize = checkAuthorize;
	}

}
